﻿using System;
using System.Collections.Generic;
using System.Text;
using xiaodingmarket_Domain_core.Models;

namespace xiaodingmarket_Domain.Models
{
    public class UserRoles:Entity
    {
        public UserRoles()
        {

        }
        public UserRoles(Guid userID, Guid roleID, User user, Role role, bool isDelete)
        {
            UserID = userID;
            RoleID = roleID;
            User = user;
            Role = role;
            IsDelete = isDelete;
        }

        /// <summary>
        ///module的id
        /// </summary>
        public Guid UserID { get; set; }
        /// <summary>
        ///role的id
        /// </summary>
        public Guid RoleID { get; set; }
        /// <summary>
        ///导航属性
        /// </summary>
        public User User { get; set; }
        public Role Role { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
